{extend name="public/base" /}

{block name="title"}百度剪辑器{/block}

{block name="main"}
<!--
<link href="/static/admin/lib/umeditor/themes/default/css/umeditor.css" type="text/css" rel="stylesheet">
<script type="text/javascript" src="/static/admin/lib/umeditor/umeditor.js?v=1"></script>
<script type="text/javascript" src="/static/admin/lib/umeditor/umeditor.config.js?v=1"></script>
-->


<div id="JS_editor" style=" width: 600px; height: 300px;">

</div>

{/block}

{block name="script"}

<script>
/*
$(document).ready(function () { 
    var ue = window.UM.getEditor('container');
}); 
*/

        

layui.use(['editor'],function(){
    
    layui.editor.render({
        'elem' : 'JS_editor',
        'toolbars' : 'mini'
    });
    console.log(UE);
    
});
</script>
{/block}